#include "game_commands.hpp"

namespace ps
{
namespace lan
{

////////////////////////////////////////////////////////////////////////////////
lge2d::lan::Packet& operator <<(lge2d::lan::Packet& packet, const VersionCommand& command)
{
	return packet << command.version;
}

lge2d::lan::Packet& operator >>(lge2d::lan::Packet& packet, VersionCommand& command)
{
	return packet >> command.version;
}

////////////////////////////////////////////////////////////////////////////////
lge2d::lan::Packet& operator <<(lge2d::lan::Packet& packet, const ErrorCommand& command)
{
	return packet << command.error_code;
}

lge2d::lan::Packet& operator >>(lge2d::lan::Packet& packet, ErrorCommand& command)
{
	return packet >> command.error_code;
}

}; // namespace lan
}; // namespace ps
